package com.nannybear.View;

import android.view.View;
import android.widget.ImageButton;
import android.widget.RelativeLayout;

import com.nannybear.R;

/**
 * @brief View to help the user
 */
public class HelpScreen extends Screen {
    /********** DECLARATIONS **********/
    // Widget of the view
    private RelativeLayout help_screen_layout;

    // Tab buttons
    private ImageButton homeButton;
    private ImageButton tempButton;
    private ImageButton brightnessButton;
    private ImageButton humidityButton;
    private ImageButton babyStateButton;
    private ImageButton settingsButton;
    private ImageButton helpButton;

    /************ METHODS ************/
    /**
     * @brief constructor.
     */
    public HelpScreen(){
    }

    /**
     * @brief Show the view
     */
    public void display(){
        help_screen_layout.setVisibility(View.VISIBLE);
        getHelpButton().setBackgroundResource(R.drawable.help_active_active);
    }

    /**
     * @brief Close the view
     */
    public void close(){
        help_screen_layout.setVisibility(View.GONE);
        getHelpButton().setBackgroundResource(R.drawable.help_grey);
    }

    /*********** ACCESSORS ***********/
    public void setHomeButton(ImageButton homeBtn) {
        this.homeButton = homeBtn;
    }

    public ImageButton getHomeButton() {
        return homeButton;
    }

    public void setTempButton(ImageButton tempBtn) {
        this.tempButton = tempBtn;
    }

    public ImageButton getTempButton() {
        return tempButton;
    }

    public void setBrightnessButton(ImageButton brightnessBtn) {
        this.brightnessButton = brightnessBtn;
    }

    public ImageButton getBrightnessButton() {
        return brightnessButton;
    }

    public void setHumidityButton(ImageButton humidityBtn) {
        this.humidityButton = humidityBtn;
    }

    public ImageButton getHumidityButton() {
        return humidityButton;
    }

    public void setBabyStateButton(ImageButton babyStateBtn) {
        this.babyStateButton = babyStateBtn;
    }

    public ImageButton getBabyStateButton() {
        return babyStateButton;
    }

    public void setSettingsButton(ImageButton settingsBtn) {
        this.settingsButton = settingsBtn;
    }

    public ImageButton getSettingsButton() {
        return settingsButton;
    }

    public void setHelpButton(ImageButton helpBtn) {
        this.helpButton = helpBtn;
    }

    public ImageButton getHelpButton() {
        return helpButton;
    }

	public RelativeLayout getHelp_screen_layout() {
		return help_screen_layout;
	}

	public void setHelp_screen_layout(RelativeLayout help_screen_layout) {
		this.help_screen_layout = help_screen_layout;
	}
}
